<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!-- @Code -->
<%
    String username = (String) session.getAttribute("username");
    String role = (String) session.getAttribute("role");
    if (username == null) {
        response.sendRedirect("../../login.jsp");
    }
%>
<!-- End Code -->
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>大黄螺学生请假系统</title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div>当前用户：${sessionScope.username}</div>
    <div class="logo margin-big-left fadein-top">
        <h1><img src="images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />大黄螺学生请假系统</h1>
        <h3>系统管理员控制台</h3>
    </div>
    <div class="head-r">
        <!-- <a href="##" class="button button-little bg-blue"><span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp; -->
        <a class="button button-little bg-red" href="user/setting?action=logout"><span class="icon-power-off"></span> 退出登录</a>
    </div>
</div>
<div class="leftnav">s
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2 ><span class="icon-user"></span>系统管理员</h2>
    <ul style="display:block" >
        <li><a href="CollegeServlet" target="right"><span class="icon-caret-right"></span>二级学院信息管理</a></li>
        <li><a href="TeacherServlet" target="right"><span class="icon-caret-right"></span>辅导员信息管理</a></li>
        <li><a href="user/setting" target="right"><span class="icon-caret-right"></span>个人设置</a></li>
    </ul>
</div>
<script type="text/javascript">
    $(function(){
        $(".leftnav h2").click(function(){
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function(){
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="" target="right" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
</ul>

<div class="admin">
    <iframe scrolling="auto"  rameborder="0" src="welcome" name="right" width="100%" height="100%"></iframe>
</div>

</body>
</html>
